package com.registration.service;

import com.registration.bean.CodeBean;
import com.registration.bean.UserBean;

public interface UserService {
    Integer loginByPassword(String phone,String password);
    CodeBean loginByCode(String phone, Integer code);
    Integer sendCode(String phone);
    void vitiateCode(String phone);
    void invalidCode(Integer timeoutMinutes);
    Integer register(UserBean userBean);
    Boolean validCode(String phone, Integer code);
    Integer resetPassword(String phone,String password,Integer code);
    void lastLoginTime(String phone);
    Integer updateUser(UserBean userBean);
    Integer changePhone(UserBean userBean);
    UserBean selectUserByPhone(String phone);




}
